package com.suyuan.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class EnvInforExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EnvInforExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGidIsNull() {
            addCriterion("GID is null");
            return (Criteria) this;
        }

        public Criteria andGidIsNotNull() {
            addCriterion("GID is not null");
            return (Criteria) this;
        }

        public Criteria andGidEqualTo(Integer value) {
            addCriterion("GID =", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotEqualTo(Integer value) {
            addCriterion("GID <>", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThan(Integer value) {
            addCriterion("GID >", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThanOrEqualTo(Integer value) {
            addCriterion("GID >=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThan(Integer value) {
            addCriterion("GID <", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThanOrEqualTo(Integer value) {
            addCriterion("GID <=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidIn(List<Integer> values) {
            addCriterion("GID in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotIn(List<Integer> values) {
            addCriterion("GID not in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidBetween(Integer value1, Integer value2) {
            addCriterion("GID between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotBetween(Integer value1, Integer value2) {
            addCriterion("GID not between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andAreaidIsNull() {
            addCriterion("AreaID is null");
            return (Criteria) this;
        }

        public Criteria andAreaidIsNotNull() {
            addCriterion("AreaID is not null");
            return (Criteria) this;
        }

        public Criteria andAreaidEqualTo(Integer value) {
            addCriterion("AreaID =", value, "areaid");
            return (Criteria) this;
        }

        public Criteria andAreaidNotEqualTo(Integer value) {
            addCriterion("AreaID <>", value, "areaid");
            return (Criteria) this;
        }

        public Criteria andAreaidGreaterThan(Integer value) {
            addCriterion("AreaID >", value, "areaid");
            return (Criteria) this;
        }

        public Criteria andAreaidGreaterThanOrEqualTo(Integer value) {
            addCriterion("AreaID >=", value, "areaid");
            return (Criteria) this;
        }

        public Criteria andAreaidLessThan(Integer value) {
            addCriterion("AreaID <", value, "areaid");
            return (Criteria) this;
        }

        public Criteria andAreaidLessThanOrEqualTo(Integer value) {
            addCriterion("AreaID <=", value, "areaid");
            return (Criteria) this;
        }

        public Criteria andAreaidIn(List<Integer> values) {
            addCriterion("AreaID in", values, "areaid");
            return (Criteria) this;
        }

        public Criteria andAreaidNotIn(List<Integer> values) {
            addCriterion("AreaID not in", values, "areaid");
            return (Criteria) this;
        }

        public Criteria andAreaidBetween(Integer value1, Integer value2) {
            addCriterion("AreaID between", value1, value2, "areaid");
            return (Criteria) this;
        }

        public Criteria andAreaidNotBetween(Integer value1, Integer value2) {
            addCriterion("AreaID not between", value1, value2, "areaid");
            return (Criteria) this;
        }

        public Criteria andSensortypeidIsNull() {
            addCriterion("SensorTypeID is null");
            return (Criteria) this;
        }

        public Criteria andSensortypeidIsNotNull() {
            addCriterion("SensorTypeID is not null");
            return (Criteria) this;
        }

        public Criteria andSensortypeidEqualTo(Integer value) {
            addCriterion("SensorTypeID =", value, "sensortypeid");
            return (Criteria) this;
        }

        public Criteria andSensortypeidNotEqualTo(Integer value) {
            addCriterion("SensorTypeID <>", value, "sensortypeid");
            return (Criteria) this;
        }

        public Criteria andSensortypeidGreaterThan(Integer value) {
            addCriterion("SensorTypeID >", value, "sensortypeid");
            return (Criteria) this;
        }

        public Criteria andSensortypeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("SensorTypeID >=", value, "sensortypeid");
            return (Criteria) this;
        }

        public Criteria andSensortypeidLessThan(Integer value) {
            addCriterion("SensorTypeID <", value, "sensortypeid");
            return (Criteria) this;
        }

        public Criteria andSensortypeidLessThanOrEqualTo(Integer value) {
            addCriterion("SensorTypeID <=", value, "sensortypeid");
            return (Criteria) this;
        }

        public Criteria andSensortypeidIn(List<Integer> values) {
            addCriterion("SensorTypeID in", values, "sensortypeid");
            return (Criteria) this;
        }

        public Criteria andSensortypeidNotIn(List<Integer> values) {
            addCriterion("SensorTypeID not in", values, "sensortypeid");
            return (Criteria) this;
        }

        public Criteria andSensortypeidBetween(Integer value1, Integer value2) {
            addCriterion("SensorTypeID between", value1, value2, "sensortypeid");
            return (Criteria) this;
        }

        public Criteria andSensortypeidNotBetween(Integer value1, Integer value2) {
            addCriterion("SensorTypeID not between", value1, value2, "sensortypeid");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidIsNull() {
            addCriterion("EnvTypeID is null");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidIsNotNull() {
            addCriterion("EnvTypeID is not null");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidEqualTo(Integer value) {
            addCriterion("EnvTypeID =", value, "envtypeid");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidNotEqualTo(Integer value) {
            addCriterion("EnvTypeID <>", value, "envtypeid");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidGreaterThan(Integer value) {
            addCriterion("EnvTypeID >", value, "envtypeid");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("EnvTypeID >=", value, "envtypeid");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidLessThan(Integer value) {
            addCriterion("EnvTypeID <", value, "envtypeid");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidLessThanOrEqualTo(Integer value) {
            addCriterion("EnvTypeID <=", value, "envtypeid");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidIn(List<Integer> values) {
            addCriterion("EnvTypeID in", values, "envtypeid");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidNotIn(List<Integer> values) {
            addCriterion("EnvTypeID not in", values, "envtypeid");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidBetween(Integer value1, Integer value2) {
            addCriterion("EnvTypeID between", value1, value2, "envtypeid");
            return (Criteria) this;
        }

        public Criteria andEnvtypeidNotBetween(Integer value1, Integer value2) {
            addCriterion("EnvTypeID not between", value1, value2, "envtypeid");
            return (Criteria) this;
        }

        public Criteria andCompidIsNull() {
            addCriterion("CompID is null");
            return (Criteria) this;
        }

        public Criteria andCompidIsNotNull() {
            addCriterion("CompID is not null");
            return (Criteria) this;
        }

        public Criteria andCompidEqualTo(Integer value) {
            addCriterion("CompID =", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidNotEqualTo(Integer value) {
            addCriterion("CompID <>", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidGreaterThan(Integer value) {
            addCriterion("CompID >", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidGreaterThanOrEqualTo(Integer value) {
            addCriterion("CompID >=", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidLessThan(Integer value) {
            addCriterion("CompID <", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidLessThanOrEqualTo(Integer value) {
            addCriterion("CompID <=", value, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidIn(List<Integer> values) {
            addCriterion("CompID in", values, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidNotIn(List<Integer> values) {
            addCriterion("CompID not in", values, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidBetween(Integer value1, Integer value2) {
            addCriterion("CompID between", value1, value2, "compid");
            return (Criteria) this;
        }

        public Criteria andCompidNotBetween(Integer value1, Integer value2) {
            addCriterion("CompID not between", value1, value2, "compid");
            return (Criteria) this;
        }

        public Criteria andSensorvalueIsNull() {
            addCriterion("SensorValue is null");
            return (Criteria) this;
        }

        public Criteria andSensorvalueIsNotNull() {
            addCriterion("SensorValue is not null");
            return (Criteria) this;
        }

        public Criteria andSensorvalueEqualTo(Float value) {
            addCriterion("SensorValue =", value, "sensorvalue");
            return (Criteria) this;
        }

        public Criteria andSensorvalueNotEqualTo(Float value) {
            addCriterion("SensorValue <>", value, "sensorvalue");
            return (Criteria) this;
        }

        public Criteria andSensorvalueGreaterThan(Float value) {
            addCriterion("SensorValue >", value, "sensorvalue");
            return (Criteria) this;
        }

        public Criteria andSensorvalueGreaterThanOrEqualTo(Float value) {
            addCriterion("SensorValue >=", value, "sensorvalue");
            return (Criteria) this;
        }

        public Criteria andSensorvalueLessThan(Float value) {
            addCriterion("SensorValue <", value, "sensorvalue");
            return (Criteria) this;
        }

        public Criteria andSensorvalueLessThanOrEqualTo(Float value) {
            addCriterion("SensorValue <=", value, "sensorvalue");
            return (Criteria) this;
        }

        public Criteria andSensorvalueIn(List<Float> values) {
            addCriterion("SensorValue in", values, "sensorvalue");
            return (Criteria) this;
        }

        public Criteria andSensorvalueNotIn(List<Float> values) {
            addCriterion("SensorValue not in", values, "sensorvalue");
            return (Criteria) this;
        }

        public Criteria andSensorvalueBetween(Float value1, Float value2) {
            addCriterion("SensorValue between", value1, value2, "sensorvalue");
            return (Criteria) this;
        }

        public Criteria andSensorvalueNotBetween(Float value1, Float value2) {
            addCriterion("SensorValue not between", value1, value2, "sensorvalue");
            return (Criteria) this;
        }

        public Criteria andRecordtimeIsNull() {
            addCriterion("RecordTime is null");
            return (Criteria) this;
        }

        public Criteria andRecordtimeIsNotNull() {
            addCriterion("RecordTime is not null");
            return (Criteria) this;
        }

        public Criteria andRecordtimeEqualTo(Date value) {
            addCriterion("RecordTime =", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeNotEqualTo(Date value) {
            addCriterion("RecordTime <>", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeGreaterThan(Date value) {
            addCriterion("RecordTime >", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("RecordTime >=", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeLessThan(Date value) {
            addCriterion("RecordTime <", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeLessThanOrEqualTo(Date value) {
            addCriterion("RecordTime <=", value, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeIn(List<Date> values) {
            addCriterion("RecordTime in", values, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeNotIn(List<Date> values) {
            addCriterion("RecordTime not in", values, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeBetween(Date value1, Date value2) {
            addCriterion("RecordTime between", value1, value2, "recordtime");
            return (Criteria) this;
        }

        public Criteria andRecordtimeNotBetween(Date value1, Date value2) {
            addCriterion("RecordTime not between", value1, value2, "recordtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}